package homework_five_2;

public class SalariedEmployee extends ColEmployee {
    private double salary;

    public SalariedEmployee(String name, int birthdaymonth, double salary) {
        super(name, birthdaymonth);
        this.salary = salary;
    }

    public double getSalary(int month) {
        if (getBirthdaymonth() == month) {
            salary += 100;
        }
        return salary;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public String getJob() {
        return " SalariedEmployee";
    }
}
